import request from '../utils/request.js'

export const wechatLogin = (code, phone, name) => {
  return request({
    url: '/auth/wechat-login',
    method: 'POST',
    data: { code, phone, name }
  })
}

export const logVisit = (data) => {
  return request({
    url: '/visitors/log',
    method: 'POST',
    data
  })
}

